import {CONSTANTS} from '../../../constants'

function getAuthPageUrl(): string {
  const redirectUrl = new URL(CONSTANTS.webUrl + '/auth/singin')
  // redirectUrl.searchParams.append('redirectUrl', window.location.href)
  return redirectUrl.toString()
}

function redirectToAuthPage(): boolean {
  window.location.replace(getAuthPageUrl())
  return true
}

export {getAuthPageUrl, redirectToAuthPage}
